package com.mhkj.base.amount.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mics.core.common.validate.annotation.NotNull;
import com.mics.core.common.validate.annotation.Unique;
import com.mics.core.system.base.entity.BaseDomain;
import com.mics.core.system.rbac.entity.Dictionary;

/**
 *考核标准
 * @version 1.0
 */
@Entity
@Table(name = "t_examine_standard")
public class ExamineStandard extends BaseDomain {

	/**
	 * 序号
	 */
	private static final long serialVersionUID = 1L;


	/**
	 * 节点性质
	 */
	@JoinColumn(name = "key_property_id")
	@ManyToOne(fetch=FetchType.LAZY)
	@Unique(message="节点性质不能重复")
	private Dictionary keyProperty;
	
	/**
	 * 金额
	 */
	@Column(name = "amount",length=48)
	@NotNull(message="考核金额不能为空")
	private String amount;

	/**
	 *考核方式  1、惩罚  2、奖励
	 */
	@Column(name="method")
	private int  method=1;
	
	/**
	 * 逾期天数/提前天数
	 */
	@Column(name="day")
	private int day;

	/**
	 * 备注
	 */
	@Lob
	@Column(name = "remark")
	private String remark;

	/**
	 * 创建人姓名
	 */
	@Transient
	private String createName;
	
	
	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}


	
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	public Dictionary getKeyProperty() {
		return keyProperty;
	}

	public void setKeyProperty(Dictionary keyProperty) {
		this.keyProperty = keyProperty;
	}

	public int getMethod() {
		return method;
	}

	public void setMethod(int method) {
		this.method = method;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}


	
	
}
